// 当项目一旦复杂起来 数据流管理变得重要
// index 返回 仓库单例
// store 数据状态 仓库
import { createStore, compose } from 'redux'
import reducer from './reducer'

// 激活 redux devtool 插件
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
// reducer 
const store = createStore(reducer, composeEnhancers());
export default store